all:client_publish  client_consumer
client_publish:client_publish.cc ../mqcommom/msg.pb.cc  ../mqcommom/proto.pb.cc ../third/include/muduo/proto/codec.cc 
	g++  $^ -o $@  -std=c++11 $ -I../third/include -L../third/lib -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz -g
client_consumer:client_consumer.cc ../mqcommom/msg.pb.cc  ../mqcommom/proto.pb.cc ../third/include/muduo/proto/codec.cc 
	g++  $^ -o $@  -std=c++11 $ -I../third/include -L../third/lib -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz -g

.PHONY:clean
clean:
	rm -rf client_publish client_consumer